package com.magicsoft.app.helper;

import android.content.Context;
import android.view.Gravity;
import android.widget.Toast;

public class ToastHelper {

	public static void showMsg(Context context,String msg,Boolean isLong) {
		
		if (context != null) {

			Toast shareToast = Toast.makeText(context, msg,
					isLong == true ? Toast.LENGTH_LONG : Toast.LENGTH_SHORT);

			shareToast.setGravity(Gravity.CENTER, 0, 0);

			shareToast.show();
		}
	}
	
}
